package com.lujianfei.redpacketstat.database.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey


@Entity(tableName = "redpacket")
data class RedPacketEntity(

    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,

    @ColumnInfo(name = "amount")
    var amount: Double = 0.0,

    @ColumnInfo(name = "userId")
    var userId: Int = 0,

    @ColumnInfo(name = "updateTime")
    var updateTime: Long = 0,

    @ColumnInfo(name = "createTime")
    var createTime: Long = 0
) {
    @Ignore
    constructor() : this(0, 0.0, 0, 0, 0)
}